package com.neutech.neufin.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.neutech.neufin.service.FinServiceImpl;
import com.neutech.po.NeuFin;


@Controller
@RequestMapping("/fin")
public class FinController {
	@Autowired
	private FinServiceImpl finService;
	@RequestMapping("/findNeuFinById")
	public @ResponseBody NeuFin findNeuFinById(Integer id) throws Exception{
		NeuFin neufin = finService.findNeuFinById(id);	
		return neufin;		
	}
	@RequestMapping(value="/updateNeuFinById",method=RequestMethod.POST)
	public @ResponseBody void updateNeuFinById() throws Exception{
		finService.updateNeuFinById();	
	}
	@RequestMapping("/deleteNeuFinById")
	public @ResponseBody  void deleteNeuFinById(Integer id) throws Exception{
		finService.deleteNeuFinById(id);;		
	}
	@RequestMapping("/addNeuFin")
	public @ResponseBody void addNeuFin() throws Exception{
		finService.addNeuFin();		
	}
}